<?PHP

// Variables, functions, etc. (mostly URL-related) related to Project Gutenberg.

define('PG_HOME_URL',   'http://www.gutenberg.org/');

$PG_home_url            = "http://www.gutenberg.org/";
$PG_history_url         = "http://www.gutenberg.org/about/";
$PG_catalog_url         = "http://www.gutenberg.org/catalog/";
$PG_gutindex_url        = "http://www.gutenberg.org/dirs/GUTINDEX.ALL";
$PG_faq_url             = "http://www.gutenberg.org/faq/gutfaq.htm";
$PG_html_faq_url        = "http://www.gutenberg.org/faq/gutfaq.htm#H.1";
$PG_donation_url        = "http://www.gutenberg.org/fundraising/donate";
$PG_copyright_howto_url = "http://www.gutenberg.org/howto/copyright-howto";
$PG_greek_howto_url     = "http://www.gutenberg.org/howto/greek/";
$PG_mailing_lists_url   = "http://www.gutenberg.org/howto/subscribe-howto";

$PG_in_progress_url     = "http://www.dprice48.freeserve.co.uk/GutIP.html"; 

$PG_paypal_business_id  = "donate@gutenberg.org";

// -----------------------------------------------------------------------------

/*
function get_pg_catalog_url_for_etext( $etext_number )
// Given a PG etext number, return a URL for the PG catalog page for that text.
{
    return "http://www.gutenberg.org/etext/$etext_number";
}

// -----------------------------------------------------------------------------

function get_pg_catalog_link_for_etext( $etext_number, $link_text=null )
// Given a PG etext number, return an HTML <a> element
// that links to the PG catalog page for that text.
{
    $url = get_pg_catalog_url_for_etext( $etext_number );

    if ( is_null($link_text) )
    {
        $link_text = sprintf( _('PG etext #%d'), $etext_number );
    }

    return "<a href='$url'>$link_text</a>";
}
*/

// vim: sw=4 ts=4 expandtab
?>
